package edu.whu.xterm.activity;

import edu.whu.xterm.R;
import greendroid.widget.GActionBar;
import android.os.Bundle;

public class MailActivity extends LoadingActivity {

	private static final int ITEM_INBOX = 2;
	private static final int ITEM_OUTBOX = 3;

	private GActionBar actionBar;

	@Override
	protected void onCreate(Bundle arg0) {
		super.onCreate(arg0);
		setContentView(R.layout.activity_mailbox);
		actionBar = ((MainTabActivity) getParent()).getGActionBar();

	}

	@Override
	protected void onResume() {
		super.onResume();
		actionBar.setTitle(getString(R.string.tab_mail_title));
		actionBar.addItem(greendroid.widget.GActionBarItem.Type.Mail, ITEM_INBOX);
		actionBar.addItem(greendroid.widget.GActionBarItem.Type.Mail, ITEM_OUTBOX);
	}

	

	@Override
	protected void onPause() {
		super.onPause();
		actionBar.removeItem(ITEM_INBOX);
		actionBar.removeItem(ITEM_OUTBOX);
	}

	@Override
	public void executeLoadTask() {

	}

}
